package com.fjzn.detect.repository.user.mapper;

import com.fjzn.detect.repository.user.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Set;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author hellowrold
 * @since 2021-04-26
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获取用户的权限字符串
     * @param userId
     * @return
     */
    Set<String> getMenuPermission(Long userId);
}
